package com.heyun.service;

import java.util.List;
import java.util.Map;

import com.heyun.bean.HeyunSalesPlan;

public interface SalesPlanService {
	   //进入首页面就查询数据库内所有的计划,并显示在主页面
	    public Map<String,Object> listSalsPlan(int currentPage);
	   //增加销售计划
		public int saveSalesPlan(HeyunSalesPlan hsp);
		//修改销售计划
		public int updateSalesPlanById(HeyunSalesPlan hsp);
		//删除销售计划
		public int deleteSalesPlan(int salesPlanId);
		//提交销售计划(也就是更改销售计划的状态为已提交)
		public int updateSalesPlanStateById(int salesPlanId);
		//根据计划的编号查看销售计划
		public HeyunSalesPlan selectSalesPlanById(int salesPlanId);
		//根据月份查看销售计划
		public Map<String,Object> findSalesPlanByMonth(int currentPage,String month);
		//批量删除销售计划
		public void deleteBatchSalesPlan(List<Integer> ids);

}
